package com.example.trb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

@Data
@TableName(autoResultMap = true)
public class ReviewForm {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @Null
    private Integer userId;
    @Null
    private String createTime;
    @Null
    private String reviewYear;
    @Null
    private String level;
    @Null
    private String declarationSeries;
    @Null
    private Integer reviewMeetingId;
    @Null
    private String status;

    @NotBlank
    private String specialty;
    @NotNull
    private int workYear;
    @NotBlank
    private String participationTime;
    @NotBlank
    private String fileLocation;
    @NotBlank
    private String summery;
}
